package org.study.jdbc.boot.dao;

import org.study.jdbc.boot.model.Student;

import java.util.List;

/**
 * 类的描述
 *
 * @author Administrator
 * @date 2022-11-01
 */
public interface StudentService {
    int insertWithId(Student student);

    int[] insertBatch(List<Student> studentList);

    int insertWithoutId(Student student);

    int deleteById(Long id);

    int updateNameById(Student student);

    List<Student> selectAll();

    List<Student> selectByName(String queryName);

    int transactionWithoutXa(Student student4Insert, Student student4Update, int exceptionFlag);

    int transactionWithXa(Student student4Insert, Student student4Update, boolean isException);
}
